<?php
/**
 * 最新资料库文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2008 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	download
 */
if (is_object($objWebInit)) {
	if(!isset($objdownload)){
		include_once(__WEB_ROOT."/download/class/download.class.php");
		include_once(__WEB_ROOT."/download/config/var.inc.php");
		$objdownload = new download();
		$objdownload->setDBG($arrGPdoDB);
		if(is_object($objWebInit->db)) $objdownload->db = $objWebInit->db;
		else $objdownload->db();
	}
}


$arrdownloadList1 = array();
$arrdownloadList1 = $objdownload->getInfoList("where pass=1  and type_id = 1","  ORDER BY recommendflag DESC,clicktimes DESC", 0, 3,true,'',false);

$arrdownloadList2 = array();
$arrdownloadList2 = $objdownload->getInfoList("where pass=1  and type_id = 2","  ORDER BY recommendflag DESC,clicktimes DESC", 0, 3,true,'',false);

$arrdownloadList3 = array();
$arrdownloadList3 = $objdownload->getInfoList("where pass=1  and type_id = 3","  ORDER BY recommendflag DESC,clicktimes DESC", 0, 3,true,'',false);

$arrdownloadList4 = array();
$arrdownloadList4 = $objdownload->getInfoList("where pass=1  and type_id = 4","  ORDER BY recommendflag DESC,clicktimes DESC", 0, 3,true,'',false);

$arrMOutput["smarty_assign"]['arrdownloadList1'] = $arrdownloadList1;
$arrMOutput["smarty_assign"]['arrdownloadList2'] = $arrdownloadList2;
$arrMOutput["smarty_assign"]['arrdownloadList3'] = $arrdownloadList3;
$arrMOutput["smarty_assign"]['arrdownloadList4'] = $arrdownloadList4;

?>